﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CommandDefinition.cs" company="">
//   
// </copyright>
// <summary>
//   The command definition.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.UseCases
{
    using System;

    /// <summary>
    ///   The command definition.
    /// </summary>
    public class CommandDefinition
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="CommandDefinition"/> class.
        /// </summary>
        /// <param name="id">
        /// The id. 
        /// </param>
        /// <param name="text">
        /// The text. 
        /// </param>
        /// <param name="description">
        /// The description. 
        /// </param>
        /// <param name="isModifying">
        /// The is modifying. 
        /// </param>
        public CommandDefinition(Guid id, string text, string description, bool isModifying = true)
        {
            Id = id;
            Text = text;
            Description = description;
            IsModifying = isModifying;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///   Gets the description.
        /// </summary>
        public string Description { get; private set; }

        /// <summary>
        ///   Gets the id.
        /// </summary>
        public Guid Id { get; private set; }

        /// <summary>
        ///   Gets a value indicating whether is modifying.
        /// </summary>
        public bool IsModifying { get; private set; }

        /// <summary>
        ///   Gets the text.
        /// </summary>
        public string Text { get; private set; }

        #endregion
    }
}